package com.runen.infinitemovement.treenode;


import com.runen.infinitemovement.R;
import com.runen.infinitemovement.adapter.treeview.LayoutItem;

/**
 * RootNode
 *
 * @author 林zero
 * @date 2018/1/14
 */

public class RootNode implements LayoutItem {
    private String name;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
    private String leader;
    private String id;

    public RootNode(String name, String id,   String leader) {
        this.name = name;
        this.id = id;
        this.leader=leader;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public int getLayoutId() {
        return R.layout.item_root;
    }

    @Override
    public int getToggleId() {
        return R.id.llParent;
    }

    @Override
    public int getCheckedId() {
        return R.id.ivCheck;
    }

    @Override
    public int getClickId() {
        return R.id.tvName;
    }

    public boolean isChecked() {
        return checked;
    }

    private boolean checked;

    public void setCheck(boolean isCheck) {
        this.checked = checked;
    }

    public String getLeader() {
        return leader;
    }

    public void setLeader(String leader) {
        this.leader = leader;
    }
}
